package com.liaowei.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 帖子-用户表
 * @TableName wy_post_user
 */
@TableName(value ="wy_post_user")
@Data
public class PostUser implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 帖子id
     */
    @TableField(value = "post_id")
    private Long postId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 访问量
     */
    @TableField(value = "access_number")
    private Integer accessNumber;

    /**
     * 评论状态 0-未评论 1-已评论
     */
    @TableField(value = "comment_status")
    private Integer commentStatus;

    /**
     * 点赞状态 0-未点赞 1-已点赞
     */
    @TableField(value = "star_status")
    private Integer starStatus;

    /**
     * 收藏状态 0-未收藏 1-已收藏
     */
    @TableField(value = "collect_status")
    private Integer collectStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}